package com.notifys;

public class thread2NotifyAll implements Runnable {

	@Override
	public void run() {
		notifyALlThread();
		
	}
	
	public synchronized void notifyALlThread(){
		System.out.println("-----thread2NotifyAll notifyAll start-----");
		notifyAll();
		System.out.println("-----thread2NotifyAll notifyAll end-----");
	}

}
